package com.zhanghaijun.dto;

/**
 * 
 * @author  zhanghaijun 2012-05-04
 *
 */
public class JsonResultDto {

	private boolean success;

	private int code;

	private Object data;
	
	public JsonResultDto(boolean _success, int _code, Object _data) {
		this.success = _success;
		this.code = _code;
		this.data = _data;
	}

	public JsonResultDto(boolean _success) {
		this(_success, 0, null);
	}

	public JsonResultDto(boolean _success, int _code) {
		this(_success, _code, null);
	}

    public JsonResultDto() {
    }

    public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

}
